package com.mzx.customer.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mzx.entity.Customer;
import com.mzx.mapper.CustomerMapper;

@Service
public class CustomerService {
@Autowired
private CustomerMapper customerMapper;
			/*登陆业务*/
public  Customer login(Customer customer) {
		
		return customerMapper.selectCustomerBycnameAndcarcode(customer);
}
			/*注册业务*/
public 	void regist(Customer customer) {
	customerMapper.insertCustomerBycnameAndcarcode(customer);
	
}
			/*注册验证车辆大架号*/
public  Customer verifyCarcode(Customer customer) {
	
	return customerMapper.selectCustomerBycarcode(customer);
}



}


